<?php

/**
 * @author jiupai
 * @copyright 2007
 * @date 2:18
 */

class GridsController extends AppController
{
    var $name = 'Grids';
    
    function getGridContent()
    {
    	//$this->set('grids',$this->Grid->find(null,null,'id desc'));
    	return $this->Grid->find(null,null,'id desc');
    }
    
    function view($id = null)
    {
    	$this->set('cell2', $this->requestAction('/cells/view/'.$id));
	}
}
?>